<!--
 * @Author: 黄达全
 * @Date: 2024-07-29 14:35:00
 * @LastEditTime: 2024-08-29 12:14:57
-->
<script lang="ts" setup>
import leftTree from "./components/leftTree.vue"
import rightTable from "./components/rightTable.vue"
import {ref} from "vue"


const height = document.documentElement.clientHeight - 44.33 - 42 - 14


const categoryId=ref<number>(1)



</script>


<template>
    <div class="goodsCategoryPage" :style="{height:height+'px'}">
        <div class="goodsCategory_container_left">
           <leftTree v-model="categoryId"/>
        </div>
        <div class="goodsCategory_container_right">
            <rightTable :categoryId="categoryId!"/>
        </div>
    </div>

</template>

<style lang="scss" scoped>
.goodsCategoryPage {
    width: 100%;
    display: flex;
    gap: 10px;

    .goodsCategory_container_left {
        width: 215px;
        height: 100%;
        background-color: #FFFFFF;
    overflow: hidden;
        border-radius: 10px;
        padding-bottom: 15px;
    }

    .goodsCategory_container_right {
        flex: 1;
        background-color: #FFFFFF;
        border-radius: 10px;
        overflow-x: hidden;
    }
}
</style>
